import request from '@/utils/request'
import { apiUrl } from '@/config/env'

export function getCategory(data) {
  return request({
    url: `${apiUrl}/category/getCategory`,
    method: 'get',
    params: data
  })
}

export function saveCategory(data) {
  return request({
    url: `${apiUrl}/category/saveCategory`,
    method: 'post',
    params: data
  })
}

export function delCategory(data) {
  return request({
    url: `${apiUrl}/category/delCategory`,
    method: 'post',
    params: data
  })
}

